
package task;

public class Calculator implements Runnable {
    private int mNumber;

    public Calculator(int number) {
        mNumber = number;
    }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.printf("%s: %d*%d = %d", Thread.currentThread().getName(), i, mNumber, i
                    * mNumber);
            System.out.println();
        }
    }

}
